home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18257 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!craiga
  3. From: craiga@netcom.com (Craig Arnush)
  4. Subject: Re: Problems using templates in Borland v5.0
  5. Message-ID: <craigaDq3tCp.Joq@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <31756C1D.4E67@nando.net> <craigaDq15pt.2rL@netcom.com> <3176C694.1E0B@nando.net>
  8. Date: Fri, 19 Apr 1996 10:05:13 GMT
  9. Sender: craiga@netcom14.netcom.com
  10.  
  11. Caius Martius <caius@nando.net> writes:
  12. >okay, the problem breaks down like this...  If I put my template class
  13. >declarations and definitions in the same *.cpp as main(), everything
  14. >works fine... BUT!!! (and there is always a but) If I put my template
  15. >classes in seperate *.H and *.cpp files, then I get the unresolved
  16. >external references to my template classes...  I think that my problem
  17. >may be with how I am placing files into the project manager...?
  18.  
  19. It sounds to me like one of your .CPP files isn't making it to the linker 
  20. for some reason.  Quite frankly, I haven't the slightest idea what could 
  21. be causing that, unless you forgot to put the appropriate file into the 
  22. project window as a child node of the main target; but I suspect that 
  23. would have been the first thing you would have checked.
  24.  
  25. Why not try using the "generate makefile" option and take a look at the 
  26. result to see if you can find anything missing there.  If not, then try 
  27. using the makefile to see if it builds the project properly.
  28.  
  29. Me
  30. -- 
  31. /-------------------------------------------------------------------\
  32. | Craig Arnush      | "Only the heir to the throne of the kindom of |
  33. |                   |  idiots fights a war on twelve fronts."       |
  34. | craiga@netcom.com |         - L. Mollari                          |
  35. \-------------------------------------------------------------------/
  36.